﻿use [{0}]
select count(*) 
from gene queryGene, gene hitGene, hits h
where queryGene.Id = h.QueryId 
and hitGene.Id = h.HitId
and queryGene.AccessionVersion = @QueryAccession
and hitGene.AccessionVersion = @HitAccession